package ooday03;

public class Student extends Person{
    String className;
    String stuId;
    Student(String name ,int age ,String address, String className ,String stuId){
        super(name, age, address);
        this.className = className;
        this.stuId = stuId;
    }
    void eat(){
        System.out.println("名叫"+name+"，年龄"+age+"，家住"+address+"，"+className+"学号为："+stuId+"在吃饭");
    }
    void sleep(){
        System.out.println("名叫"+name+"，年龄"+age+"，家住"+address+"，"+className+"学号为："+stuId+"在吃饭");
    }
    void study(){
        System.out.println(name +"在认真学习");
    }
}
